import React  from 'react';

//二级
const Home = React.lazy(()=>import('../view/main/home'));
const Classify = React.lazy(()=>import('../view/main/classify'));
const Cart = React.lazy(()=>import('../view/main/cart'));
const Mine = React.lazy(()=>import('../view/main/mine'));
const Topic = React.lazy(()=>import('../view/main/topic'));
const homeChild = [
    {
        path:'/main/home',
        component:Home,
        meta:{
            title:'首页',
            icon:'icon-shouye'
        }
    },
    {
        path:'/main/topic',
        component:Topic,
        meta:{
            title:'专题',
            icon:'icon-fuzhi'
        }
    },
    {
        path:'/main/classify',
        component:Classify,
        meta:{
            title:'分类',
            icon:'icon-fenlei-xuanzhong'
        }
    },
    {
        path:'/main/cart',
        component:Cart,
        meta:{
            title:'购物车',
            icon:'icon-gouwuche'
        }
    },
    {
        path:'/main/mine',
        component:Mine,
        meta:{
            title:'我的',
            icon:'icon-wode'
        }
    },
    
    {
        path:'/main',
        redirect:'/main/home'
    }
];

export default homeChild
